<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>注册</title>
    <link rel="stylesheet" type="text/css" href="css/public.css"/>
    <link rel="stylesheet" type="text/css" href="css/login.css"/>
    <script type="text/javascript" src="js/jquery-1.12.4.min.js"></script>
    <script type="text/javascript" src="js/function.js"></script>
    <style type="text/css">
    	.reg p .error{
    		display:inline-block;
    		border:1px solid #ff855a;
    		background-color: #ffe8e0;
    		height: 25px;
    		line-height:25px;
    		padding:0px 20px;
    		margin-left: 30px;
    	}
    </style>
</head>
<body><!-------------------reg-------------------------->
<div class="reg">
    <form action="/CourseDesign4/register" method="post" onsubmit="return checkForm(this)"><h1><a href="indexdo">Haust电子书城</a></h1>
        <h2>用户注册</h2>
        <p><input type="text" name="username" value="" placeholder="请输入用户名" onfocus="FocusItem(this)" onblur="CheckItem(this)" ><span></span></p>
        <p><input type="text" name="name" value="" placeholder="请输入姓名" onfocus="FocusItem(this)" onblur="CheckItem(this)"><span></span></p>
        <p><input type="text" name="password" value="" placeholder="请确认密码" onfocus="FocusItem(this)" onblur="CheckItem(this)"><span></span></p>
        <p> <input style="width:15px;height:15px" type="radio" name="sex" value="T" checked>男
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <input style="width:15px;height:15px" type="radio" name="sex" value="F">女
            <span></span></p>
        <p><input type="text" name="address" value="" placeholder="请输入送货地址" onfocus="FocusItem(this)" onblur="CheckItem(this)"><span></span></p>
        <p><input class="code" type="text" name="verycode" value="" placeholder="验证码" onfocus="FocusItem(this)" onblur="CheckItem(this)" >
        <img heigth="30" src="/CourseDesign4/getcode" alt="看不清,换一张" onclick="change(this)" >
        <span></span></p>
        <p><input type="submit" name="" value="注册"></p>
        <p class="txtL txt">完成此注册，即表明您同意了我们的<a href="#">
            <使用条款和隐私策略>
        </a></p>
        <p class="txt"><a href="#"><span></span>已有账号登录</a></p>
        <!--<a href="#" class="off"><img src="img/temp/off.png"></a>--></form>
</div>
</body>
</html>